{{ include('/include/head.html') }}
<div class="container">

    <form class="mt-5" method="POST" action="/admin/config_sql">




      <h3>数据库配置</h3>

      <div class="form-group row mt-4">
        <label class="col-sm-2 col-form-label">数据库类型</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{{sql_Config['database_type']}}" name="database_type">
        </div>
      </div>
      <div class="form-group row mt-4">
        <label class="col-sm-2 col-form-label">数据库名称</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{{sql_Config['database_name']}}" name="database_name">
        </div>
      </div>
      <div class="form-group row mt-4">
        <label class="col-sm-2 col-form-label">数据库地址</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{{sql_Config['server']}}" name="server">
        </div>
      </div>
      <div class="form-group row mt-4">
        <label class="col-sm-2 col-form-label">数据库账号</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{{sql_Config['username']}}" name="username">
        </div>
      </div>
      <div class="form-group row mt-4">
        <label class="col-sm-2 col-form-label">数据库密码</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{{sql_Config['password']}}" name="password">
        </div>
      </div>


      <hr>



       
        <div class="form-group row">
          <div class="col-sm-10">
            <button type="submit" class="btn btn-primary">保存修改</button>
          </div>
        </div>
      </form>

 </div> 

{{ include('include/js.html') }}
{{ include('include/footer.html') }}